package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "article",comment = "用户笔记表")
public class Article {

    @AcColumn(name = "id",comment = "笔记ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "class_id",defaultValue = "0",comment = "分类ID",type = ColumnTypeEnums.INT)
    private Integer class_id;

    @AcColumn(name = "tags_id",defaultValue = "0",comment = "笔记关联标签",type = ColumnTypeEnums.INT)
    private Integer tags_id;

    @AcColumn(name = "title",defaultValue = "",comment = "笔记标题",type = ColumnTypeEnums.VARCHAR,length = 80)
    private String title;

    @AcColumn(name = "summary",defaultValue = "",comment = "笔记摘要",type = ColumnTypeEnums.VARCHAR,length = 200)
    private String summary;

    @AcColumn(name = "image",defaultValue = "",comment = "笔记首图",type = ColumnTypeEnums.VARCHAR,length = 255)
    private String image;

    @AcColumn(name = "is_asterisk",defaultValue = "0",comment = "是否星标笔记[0:否;1:是]",type = ColumnTypeEnums.INT)
    private Integer is_asterisk;

    @AcColumn(name = "status",defaultValue = "1",comment = "笔记状态[1:正常;2:已删除]",type = ColumnTypeEnums.INT)
    private Integer status;

    @AcColumn(name = "created_at",comment = "添加时间",type = ColumnTypeEnums.DATETIME,isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at",comment = "最后一次更新时间",type = ColumnTypeEnums.DATETIME,isNull = true)
    private LocalTime updatedAt;

    @AcColumn(name = "deleted_at",comment = "笔记删除时间",type = ColumnTypeEnums.DATETIME,isNull = true)
    private LocalTime deleted_at;
}
